package bm.com.ai.server.rag.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Configuration
@ConfigurationProperties(prefix = "rag")
public class RagConfig {
    private boolean enabled = true;
    private int topK = 3;
    private double similarityThreshold = 0.7;
    private EmbedderConfig embedder = new EmbedderConfig();

    @Data
    public static class EmbedderConfig {
        private String type = "hf"; // hugging-face
        private String apiKey = "hf"; // hugging-face
        private String modelName = "BAAI/bge-small-en-v1.5";
        private int timeoutMs = 15000;
    }
}